package com.ruoyi.yf.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 医废出库记录对象 yf_outstore_record
 * 
 * @author XiaoYi...
 * @date 2020-07-21
 * 6b4031d9-9490-4eb8-9501-1095cf5af5b8
 */
public class YfOutstoreRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 医废条码 */
    @Excel(name = "医废条码")
    private String codeid;

    /** 医院id */
    @Excel(name = "医院id")
    private Long hospitalId;

    /** 医废暂存处id */
    @Excel(name = "医废暂存处id")
    private Long stagingId;

    /** 医废类型id */
    @Excel(name = "医废类型id")
    private String trashType;

    /** 出库医废袋数 */
    @Excel(name = "出库医废袋数")
    private Long outBag;

    /** 出库医废重量 */
    @Excel(name = "出库医废重量")
    private Double outWeight;

    /** 创建者id */
    private Long createId;

    /** 创建者 */
    private String createBy;

    /** 更新者id */
    private Long updateId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("时间")
    private Date createTime;

    // 此批是否最后一次出库  1 是   0  不是
    private String isAllOutStore;

    // 逻辑删除
    private String delFlag;

    public YfOutstoreRecord(){
    }

    public YfOutstoreRecord(String codeid, Long hospitalId, Long stagingId,String trashType,Long outBag,
                            Double outWeight, String isAllOutStore,Long createId, String createBy) {
        this.codeid = codeid;
        this.hospitalId = hospitalId;
        this.stagingId = stagingId;
        this.trashType = trashType;
        this.outBag = outBag;
        this.outWeight = outWeight;
        this.isAllOutStore = isAllOutStore;
        this.createId = createId;
        this.createBy = createBy;
    }

    public void setCodeid(String codeid)
    {
        this.codeid = codeid;
    }

    public String getCodeid() 
    {
        return codeid;
    }
    public void setHospitalId(Long hospitalId) 
    {
        this.hospitalId = hospitalId;
    }

    public Long getHospitalId() 
    {
        return hospitalId;
    }
    public void setStagingId(Long stagingId) 
    {
        this.stagingId = stagingId;
    }

    public Long getStagingId() 
    {
        return stagingId;
    }
    public void setOutBag(Long outBag) 
    {
        this.outBag = outBag;
    }

    public Long getOutBag() 
    {
        return outBag;
    }
    public void setOutWeight(Double outWeight) 
    {
        this.outWeight = outWeight;
    }

    public Double getOutWeight() 
    {
        return outWeight;
    }
    public void setCreateId(Long createId) 
    {
        this.createId = createId;
    }

    public Long getCreateId() 
    {
        return createId;
    }
    public void setUpdateId(Long updateId) 
    {
        this.updateId = updateId;
    }

    public Long getUpdateId() 
    {
        return updateId;
    }

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getIsAllOutStore() {
        return isAllOutStore;
    }

    public void setIsAllOutStore(String isAllOutStore) {
        this.isAllOutStore = isAllOutStore;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("codeid", getCodeid())
            .append("hospitalId", getHospitalId())
            .append("stagingId", getStagingId())
            .append("outBag", getOutBag())
            .append("outWeight", getOutWeight())
            .append("createId", getCreateId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateId", getUpdateId())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
